import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore 忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import App from '@/App.vue'
import golobleComponents from '@/components/index.ts'
//svg插件需要配置代码
import 'virtual:svg-icons-register'
import '@/styles/index.scss'
import router from './router/index'
import pinia from './store/index'

const app = createApp(App)
//打印 开发||生产 环境配置
// console.log(import.meta.env);
app.use(ElementPlus, {
  locale: zhCn,
})

app.use(golobleComponents)
app.use(router)
import './promession'
app.use(pinia)
app.mount('#app')
